﻿<%@ Page Title="Zupons ReviewOrder" Language="C#" MasterPageFile="~/SiteMaster.master"
    AutoEventWireup="true" CodeFile="ReviewOrder.aspx.cs" Inherits="Front_ReviewOrder" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        function CloseGiftWindow() {
            $find('divAuthentication').hide();
            return false;
        }
    </script>

    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                        <%--<table>
                                            <tr>
                                                <td width="19">
                                                    <img src="Images/curve1.jpg" width="19" height="17" />
                                                </td>
                                                <td width="665" background="images/top_bg.jpg">
                                                    <img src="images/top_bg.jpg" width="3" height="17" />
                                                </td>
                                                <td width="19">
                                                    <img src="images/curve4.jpg" width="19" height="17" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td background="images/left_bg.jpg">
                                                    <img src="images/left_bg.jpg" width="19" height="3" />
                                                </td>
                                                <td>
                                                    <table width="400">
                                                        <tr>
                                                            <td>
                                                                <b>Order Total:</b>
                                                            </td>
                                                            <td>
                                                                $<asp:Literal ID="AmountLiteral" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <b>Address Details:</b>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                First Name:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal1" Text="<%#FirstNameLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Last Name:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal2" Text="<%#LastNameLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Street 1:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="StreetLiteral" Text="<%#StreetLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                City:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="CityLiteral" Text="<%#CityLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                State:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="StateLiteral" Text="<%#StateLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Postal code:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="PostalCodeLiteral" Text="<%#PostalCodeLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Country:
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="CountryLiteral" Text="<%#CountryLiteralText%>" runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                <asp:Button runat="server" ID="ECReceiptLink" Text="Pay" OnClick="ECReceiptLink_Click"
                                                                    CssClass="OrderDeatil" Font-Bold="true"></asp:Button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td background="images/right_bg.jpg">
                                                    <img src="images/right_bg.jpg" width="19" height="3" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/curve2.jpg" width="19" height="14" />
                                                </td>
                                                <td background="images/bottom_bg.jpg">
                                                    <img src="images/bottom_bg.jpg" width="5" height="14" />
                                                </td>
                                                <td>
                                                    <img src="images/curve3.jpg" width="19" height="14" />
                                                </td>
                                            </tr>
                                        </table>--%>
                                        <table width="100%">
                                            <tr>
                                                <td colspan="6">
                                                    <strong style="font-size: 16pt; color: #000000; width: 250px;">YOUR PURCHASE : </strong>
                                                    <br />
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr style="font-family: Arial; font-size: 11pt; color: #000;">
                                                <td width="60%">
                                                    <b>Description</b>
                                                </td>
                                                <td width="10%">
                                                    <b>Quantity </b>
                                                </td>
                                                <td width="5%">
                                                </td>
                                                <td width="10%">
                                                    <b>Price</b>
                                                </td>
                                                <td width="5%">
                                                </td>
                                                <td width="10%">
                                                    <b>Total </b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100%" colspan="6">
                                                    <hr />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    <asp:Label ID="lblDescription" runat="server" Width="350px"></asp:Label>
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    <asp:TextBox ID="txtQuantity" runat="server" Height="19px" Width="52px" AutoPostBack="True"
                                                        CssClass="txt_align" MaxLength="5"></asp:TextBox><br />
                                                    <span style="color: Red" id="errmsg"></span>
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    X
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    <b>$<asp:Label ID="lblPrice" runat="server"></asp:Label></b>
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    =
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    <b>$<asp:Label ID="lblTotalPrice" runat="server"></asp:Label></b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td colspan="5">
                                                    <span style="color: Red" id="errmsg2" runat="server"></span>
                                                </td>
                                            </tr>
                                            <tr runat="server" visible="true" id="SaveGift">
                                                <td width="100%" colspan="6" align="left">
                                                    <asp:Image ID="imgGift" runat="server" ImageUrl="~/Images/gift.jpg" Width="25px"
                                                        Height="25px" />
                                                    <asp:LinkButton ID="lnkBtnGift" runat="server" Text="Give this Zupons as a Gift 
" OnClick="lnkBtnGift_Click"></asp:LinkButton>
                                                </td>
                                            </tr>
                                            <tr runat="server" visible="false" id="EditGift">
                                                <td align="left" colspan="6">
                                                    <table style="background-color: #D6D6D6;" width="50%">
                                                        <tr>
                                                            <td>
                                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/gift.jpg" Width="25px" Height="25px" />
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblGiftFor" Text="" runat="server"></asp:Label>
                                                                <br />
                                                                <asp:LinkButton ID="lnkbtnEditGift" runat="server" Text="edit gift options 
" OnClick="lnkbtnEditGift_Click"></asp:LinkButton>
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="imgGiftCancel" runat="server" ImageUrl="~/Images/glossy-3d-blue-delete-icon.png"
                                                                    Width="35px" Height="35px" OnClick="imgGiftCancel_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3">
                                                    <br />
                                                    <asp:Label ID="lblFinalPrice" runat="server" Text="" Font-Names="Arial" Font-Size="11pt"
                                                        Visible="false"></asp:Label>
                                                </td>
                                                <td style="font-size: 14px; font-weight: bold; text-align: right; color: #f00;">
                                                    <asp:Label Text="Credit" ID="Credit" runat="server"></asp:Label>
                                                </td>
                                                <td>
                                                </td>
                                                <td style="font-size: 14px; font-weight: bold; color: #f00;">
                                                    <asp:Label ID="lblCredit" runat="server" Text=""></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td width="40%" colspan="5">
                                                    <hr />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td colspan="3" style="font-family: Arial; font-size: 12pt; font-weight: bold; text-align: right;">
                                                    <b>Your Final Price :</b>
                                                </td>
                                                <td>
                                                </td>
                                                <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                                    <b>$<asp:Label ID="lblYourTotal" runat="server" Text=""></asp:Label></b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100%" colspan="6">
                                                    <hr />
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr runat="server" id="tdRefer" visible="false">
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Button runat="server" ID="ECReceiptLink" Text="Submit" OnClick="ECReceiptLink_Click"
                                                        CssClass="genericButton" Font-Size="11pt" Width="120px"></asp:Button>
                                                </td>
                                                <td align="left">
                                                    <asp:Button ID="lnkbtnCancel" runat="server" CssClass="genericButton" OnClick="lnkbtnCancel_Click"
                                                        Text="Cancel" Font-Size="11pt" Width="120px" />
                                                </td>
                                                <tr>
                                                </tr>
                                        </table>
                                        <asp:LinkButton ID="lnkMore1" runat="server" Style="display: none">View more Cities</asp:LinkButton>
                                        <asp:Panel ID="PanelSubscriptionPopup1" runat="server" Style="border: 2px solid #87ae53;
                                            width: 500px; height: 300px; background-color: #CCFFCC; font-family: Arial; display: none;"
                                            EnableViewState="True">
                                            <div style="float: right; margin-top: -20px; right: -10px; top: 0;">
                                                <asp:ImageButton ID="imgClose" runat="server" Width="40px" Height="40px" ImageUrl="~/Images/glossy-3d-blue-delete-icon.png"
                                                    OnClientClick="return CloseGiftWindow();" /></div>
                                            <table>
                                                <tr>
                                                    <td colspan="3" align="center">
                                                        <b>Gift</b>
                                                        <br />
                                                        Options Fill out the form below and give the gift of Zupons!<br />
                                                        <br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>To:</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtTo" runat="server" Width="180px"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTo"
                                                            ErrorMessage="To is required." ToolTip="To is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>From:</b><br />
                                                        (Name you want the recipient to see.)
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtFrom" runat="server" Width="180px"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFrom"
                                                            ErrorMessage="From is required." ToolTip="From is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>Message:</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtMessage"
                                                            ErrorMessage="Message is required." ToolTip="From is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>Delivery:</b>
                                                    </td>
                                                    <td colspan="2">
                                                        <asp:RadioButtonList ID="rbtnDelivery" runat="server" RepeatDirection="Horizontal"
                                                            OnSelectedIndexChanged="rbtnDelivery_SelectedIndexChanged" AutoPostBack="true"
                                                            CausesValidation="false">
                                                            <asp:ListItem Value="0" Selected="True">Email It</asp:ListItem>
                                                            <asp:ListItem Value="1">I&apos;ll print it myself</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <b>To:</b><asp:TextBox ID="txtToEmail" runat="server" Width="160px"></asp:TextBox><br />
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblGiftErr" runat="server" Text="" ForeColor="Red"></asp:Label><br />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtToEmail"
                                                            ErrorMessage="You must enter an valid email address" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                            ValidationGroup="RegGift">
                                                        </asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:Button ID="btnGiftSave" runat="server" Text="Save" Font-Bold="true" ValidationGroup="RegGift"
                                                            OnClick="btnGiftSave_Click" ForeColor="White" BackColor="Green" BorderStyle="None" />&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:Button ID="btnGiftCancel" runat="server" Text="Cancel" BackColor="Green" BorderStyle="None"
                                                            Font-Bold="true" OnClientClick="return CloseGiftWindow();" CausesValidation="false"
                                                            ForeColor="White" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <div align="center">
                                                <asp:Button ID="OkButton1" runat="server" Text="OK" Style="display: none" CausesValidation="false" />
                                                <asp:Button ID="CancelButton1" runat="server" Style="display: none" Text="Close" />
                                            </div>
                                        </asp:Panel>
                                        <cc1:ModalPopupExtender ID="divAuthentication" runat="server" TargetControlID="lnkMore1"
                                            PopupControlID="PanelSubscriptionPopup1" BehaviorID="divAuthentication" DropShadow="false"
                                            CancelControlID="CancelButton1" BackgroundCssClass="modalBackground" />
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
